package com.diandian.backend.entrance.client.dto;

import com.diandian.base.boot.starter.exception.DefaultException;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class MemberDouyinLifeMemberInfoPageParamDTO implements Serializable {

	private Integer pageNum;
	private Integer pageSize;
	private String belongEql;
	private String belongLike;
	private String openIdEql;
	private String openIdLike;
	private String mobileEql;
	private String mobileLike;
	private String accountIdEql;
	private String accountIdLike;
	private Double points;
	private String levelEql;
	private String levelLike;
	private String statusEql;
	private String statusLike;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTimeBefore;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTimeAfter;
	private String createUserIdEql;
	private String createUserIdLike;
	private String createUserNameEql;
	private String createUserNameLike;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTimeBefore;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTimeAfter;
	private String updateUserIdEql;
	private String updateUserIdLike;
	private String updateUserNameEql;
	private String updateUserNameLike;
	private Integer del;

	public void check(){
		if(this.pageNum == null || this.pageNum < 1 || this.pageSize == null || this.pageSize < 1){
			throw new DefaultException("分页参数不合法");
		}
	}

	public MemberDouyinLifeMemberInfoPageParamDTO toDTO(){
		MemberDouyinLifeMemberInfoPageParamDTO result = new MemberDouyinLifeMemberInfoPageParamDTO();
		result.setPageNum(this.pageNum);
		result.setPageSize(this.pageSize);
		result.setBelongEql(this.belongEql);
		result.setBelongLike(this.belongLike);
		result.setOpenIdEql(this.openIdEql);
		result.setOpenIdLike(this.openIdLike);
		result.setMobileEql(this.mobileEql);
		result.setMobileLike(this.mobileLike);
		result.setAccountIdEql(this.accountIdEql);
		result.setAccountIdLike(this.accountIdLike);
		result.setPoints(this.points);
		result.setLevelEql(this.levelEql);
		result.setLevelLike(this.levelLike);
		result.setStatusEql(this.statusEql);
		result.setStatusLike(this.statusLike);
		result.setCreateTimeBefore(this.createTimeBefore);
		result.setCreateTimeAfter(this.createTimeAfter);
		result.setCreateUserIdEql(this.createUserIdEql);
		result.setCreateUserIdLike(this.createUserIdLike);
		result.setCreateUserNameEql(this.createUserNameEql);
		result.setCreateUserNameLike(this.createUserNameLike);
		result.setUpdateTimeBefore(this.updateTimeBefore);
		result.setUpdateTimeAfter(this.updateTimeAfter);
		result.setUpdateUserIdEql(this.updateUserIdEql);
		result.setUpdateUserIdLike(this.updateUserIdLike);
		result.setUpdateUserNameEql(this.updateUserNameEql);
		result.setUpdateUserNameLike(this.updateUserNameLike);
		result.setDel(this.del);
		return result;
	}

	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public String getBelongEql() {
		return belongEql;
	}
	public void setBelongEql(String belongEql) {
		this.belongEql = belongEql;
	}
	public String getBelongLike() {
		return belongLike;
	}
	public void setBelongLike(String belongLike) {
		this.belongLike = belongLike;
	}
	public String getOpenIdEql() {
		return openIdEql;
	}
	public void setOpenIdEql(String openIdEql) {
		this.openIdEql = openIdEql;
	}
	public String getOpenIdLike() {
		return openIdLike;
	}
	public void setOpenIdLike(String openIdLike) {
		this.openIdLike = openIdLike;
	}
	public String getMobileEql() {
		return mobileEql;
	}
	public void setMobileEql(String mobileEql) {
		this.mobileEql = mobileEql;
	}
	public String getMobileLike() {
		return mobileLike;
	}
	public void setMobileLike(String mobileLike) {
		this.mobileLike = mobileLike;
	}
	public String getAccountIdEql() {
		return accountIdEql;
	}
	public void setAccountIdEql(String accountIdEql) {
		this.accountIdEql = accountIdEql;
	}
	public String getAccountIdLike() {
		return accountIdLike;
	}
	public void setAccountIdLike(String accountIdLike) {
		this.accountIdLike = accountIdLike;
	}
	public Double getPoints() {
		return points;
	}
	public void setPoints(Double points) {
		this.points = points;
	}
	public String getLevelEql() {
		return levelEql;
	}
	public void setLevelEql(String levelEql) {
		this.levelEql = levelEql;
	}
	public String getLevelLike() {
		return levelLike;
	}
	public void setLevelLike(String levelLike) {
		this.levelLike = levelLike;
	}
	public String getStatusEql() {
		return statusEql;
	}
	public void setStatusEql(String statusEql) {
		this.statusEql = statusEql;
	}
	public String getStatusLike() {
		return statusLike;
	}
	public void setStatusLike(String statusLike) {
		this.statusLike = statusLike;
	}
	public Date getCreateTimeBefore() {
		return createTimeBefore;
	}
	public void setCreateTimeBefore(Date createTimeBefore) {
		this.createTimeBefore = createTimeBefore;
	}
	public Date getCreateTimeAfter() {
		return createTimeAfter;
	}
	public void setCreateTimeAfter(Date createTimeAfter) {
		this.createTimeAfter = createTimeAfter;
	}
	public String getCreateUserIdEql() {
		return createUserIdEql;
	}
	public void setCreateUserIdEql(String createUserIdEql) {
		this.createUserIdEql = createUserIdEql;
	}
	public String getCreateUserIdLike() {
		return createUserIdLike;
	}
	public void setCreateUserIdLike(String createUserIdLike) {
		this.createUserIdLike = createUserIdLike;
	}
	public String getCreateUserNameEql() {
		return createUserNameEql;
	}
	public void setCreateUserNameEql(String createUserNameEql) {
		this.createUserNameEql = createUserNameEql;
	}
	public String getCreateUserNameLike() {
		return createUserNameLike;
	}
	public void setCreateUserNameLike(String createUserNameLike) {
		this.createUserNameLike = createUserNameLike;
	}
	public Date getUpdateTimeBefore() {
		return updateTimeBefore;
	}
	public void setUpdateTimeBefore(Date updateTimeBefore) {
		this.updateTimeBefore = updateTimeBefore;
	}
	public Date getUpdateTimeAfter() {
		return updateTimeAfter;
	}
	public void setUpdateTimeAfter(Date updateTimeAfter) {
		this.updateTimeAfter = updateTimeAfter;
	}
	public String getUpdateUserIdEql() {
		return updateUserIdEql;
	}
	public void setUpdateUserIdEql(String updateUserIdEql) {
		this.updateUserIdEql = updateUserIdEql;
	}
	public String getUpdateUserIdLike() {
		return updateUserIdLike;
	}
	public void setUpdateUserIdLike(String updateUserIdLike) {
		this.updateUserIdLike = updateUserIdLike;
	}
	public String getUpdateUserNameEql() {
		return updateUserNameEql;
	}
	public void setUpdateUserNameEql(String updateUserNameEql) {
		this.updateUserNameEql = updateUserNameEql;
	}
	public String getUpdateUserNameLike() {
		return updateUserNameLike;
	}
	public void setUpdateUserNameLike(String updateUserNameLike) {
		this.updateUserNameLike = updateUserNameLike;
	}
	public Integer getDel() {
		return del;
	}
	public void setDel(Integer del) {
		this.del = del;
	}
}
